<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>DetectHiddenText</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>DetectHiddenText</h1>

<p>Determines whether invisible text in a window is &quot;seen&quot; for the purpose of finding the window. This affects commands such as IfWinExist and WinActivate.</p>

<pre class="Syntax">DetectHiddenText, On|Off</pre>
<h3>Parameters</h3>
<dl>

  <dt>On|Off</dt>
  <dd><p><strong>On</strong>: This is the default. Hidden text will be detected.</p>
      <p><strong>Off</strong>: Hidden text is not detected.</p></dd>

</dl>

<h3>Remarks</h3>
<p>&quot;Hidden text&quot; is a term that refers to those controls of a window that are not visible. Their text is thus considered &quot;hidden&quot;. Turning off DetectHiddenText can be useful in cases where you want to detect the difference between the different panes of a multi-pane window or multi-tabbed dialog. Use Window Spy to determine which text of the currently-active window is hidden. All commands that accept a <em>WinText</em> parameter are affected by this setting, including <a href="WinActivate.htm">WinActivate</a>, <a href="WinActive.htm">IfWinActive</a>, <a href="WinWait.htm">WinWait</a>, and <a href="WinExist.htm">IfWinExist</a>.</p>
<p>The built-in variable <strong>A_DetectHiddenText</strong> contains the current setting (On or Off).</p>
<p>Every newly launched <a href="../misc/Threads.htm">thread</a> (such as a <a href="../Hotkeys.htm">hotkey</a>, <a href="Menu.htm">custom menu item</a>, or <a href="SetTimer.htm">timed</a> subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).</p>
<h3>Related</h3>
<p><a href="DetectHiddenWindows.htm">DetectHiddenWindows</a></p>
<h3>Example</h3>
<pre class="NoIndent">DetectHiddenText, off</pre>

</body>
</html>
